package com.DI_by_xml;

import com.yangbwe.Springtest.DI_by_xml.student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test01 {
    @Test
    public  void test_1(){

        String config="test01/applicationContest.xml";
        ApplicationContext ac=new ClassPathXmlApplicationContext(config);
        student student01 = (student) ac.getBean("student01");

        System.out.println(student01);
    }
}
